<template>
  <div>
    <el-breadcrumb separator="/" class="pageheader">
      <el-breadcrumb-item
        :to="item.path == '/home' ? { path: item.path } : ''"
        v-for="(item, key) in pageHeader.route"
        :key="key"
        >{{ item.name }}
      </el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script setup>
import { usePageHeaderStore } from '@/store/modules/pageHeader.js'

const pageHeader = usePageHeaderStore()
console.log(111, pageHeader.route);
</script>
<style lang="less" scoped>
@import "./index.less";
</style>